package com.ruoyi.shop.mapper;

import java.util.List;
import com.ruoyi.shop.domain.User;
import io.lettuce.core.dynamic.annotation.Param;

/**
 * shopMapper接口
 *
 * @author ruoyi
 * @date 2025-06-09
 */
public interface UserMapper
{
    /**
     * 查询shop
     *
     * @param userid shop主键
     * @return shop
     */
    public User selectUserByUserid(String userid);
    User selectUserByNumber(@Param("usernumber") String usernumber);
    /**
     * 查询shop列表
     *
     * @param user shop
     * @return shop集合
     */
    public List<User> selectUserList(User user);

    /**
     * 新增shop
     *
     * @param user shop
     * @return 结果
     */
    public int insertUser(User user);

    /**
     * 修改shop
     *
     * @param user shop
     * @return 结果
     */
    public int updateUser(User user);

    /**
     * 删除shop
     *
     * @param userid shop主键
     * @return 结果
     */
    public int deleteUserByUserid(String userid);

    /**
     * 批量删除shop
     *
     * @param userids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteUserByUserids(String[] userids);
}
